package router

import (
	"github.com/gin-gonic/gin"
	"server/internal/app/api"
	"server/internal/app/middleware"
)

// CommonApi 公共接口路由
func CommonApi(r *gin.Engine) {
	//公共接口
	ApiGroup := r.Group("/common", middleware.LoginVerification)
	{
		ApiGroup.POST("/upload", api.Common.Upload) //单文件上传
		ApiGroup.GET("/area", api.Common.Area)

	}

}
